
import server from './http.js' //导入axios

// 购物车 的接口


//获取全部购物车
const CartAll = (model) => {
    let data = server.post('/user/shoppingCart/getShoppingCart', model)
    return data
}
//修改购物车数量
const CartNum = (model) => {
    let data = server.post('user/shoppingCart/updateShoppingCart', model)
    return data
}
//删除 购物车
const delCart = (model) => {
    let data = server.post('/user/shoppingCart/deleteShoppingCart', model)
    return data
}

export { CartAll, delCart, CartNum }
